package cc.ls51.api.interceptor;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class MyProperty {
    public static List<String> excludeUrlList = new ArrayList();
    static {
        excludeUrlList.add("/v2.0/login/LoginController/login");
    }
    @Value("${spring.profiles.active}")
    private String active;

    public boolean isDev(){
        if("dev".equals(active)){
            return true;
        }
        return false;
    }

    public String getActive() {
        return active;
    }

    public void setActive(String active) {
        this.active = active;
    }
}
